<template>
    <el-table :data="categoryTree" row-key="id" lazy :load="load" :tree-props="{hasChildren:'has_children'}" >
        <el-table-column prop="name" label="名称"></el-table-column>
        <el-table-column prop="id" label="id"></el-table-column>
    </el-table>

</template>

<script setup>
import { useCategory } from '@/hooks/category';

const{categoryTree,load,categoryList,categoryMap} = useCategory();
</script>